package com.xiaoq;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xinpeng created on 16/7/21-上午11:38.
 */
@Component
@ConfigurationProperties(prefix = "spring.mongo")
public class MongoProperties {


    private List<String> replicaSets = new ArrayList<>();
    private String database;
    private String username;
    private String password;
    private String fieldNamingStrategy;

    public List<String> getReplicaSets() {
        return replicaSets;
    }

    public void setReplicaSets(List<String> replicaSets) {
        this.replicaSets = replicaSets;
    }

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFieldNamingStrategy() {
        return fieldNamingStrategy;
    }

    public void setFieldNamingStrategy(String fieldNamingStrategy) {
        this.fieldNamingStrategy = fieldNamingStrategy;
    }
}
